﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using bll;

namespace UI
{
    public partial class StudentUI : System.Web.UI.Page
    {
        /// <summary>
        /// 封装Address绑定数据用于调用
        /// </summary>
        void Add() {
            this.DropDownList1.DataSource = AddressBLL.da();
            this.DropDownList1.DataTextField = "add";
            this.DropDownList1.DataValueField = "addid";
            this.DropDownList1.DataBind();
        }
        void Stu() {
            this.DataList1.DataSource = AddressBLL.dat();
            this.DataList1.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                Add();
                Stu();
            }

        }
    }
}